Repository navigation
feat(ops-port): add desk, ruling lapse and the nightly memory settle - #46
Merged
Merged
Conversation
standing-orders.md gains a fourth column, Kind: setup (with a review date 14 days out), preference or guardrail, and its header explains them. BOOTSTRAP.md writes a non-default Round C posture as setup, Rounds D to F as preference, and box ground rules as guardrail. desk lapse moves a setup ruling past its review date to standing-orders-archive.md unless the Operator says keep; the tool arrives with the clean desk port.
The harness skill gains a short section on the clean desk review: what cleaning the desk means, the three ruling kinds (setup lapses 14 days after its date unless kept; preference; guardrail, answered alone), that a lapsed or retired ruling is kept in standing-orders-archive.md and nothing is deleted, and the desk commands (desk, review, commit-review, keep, undo). The commands arrive with the template update that carries them.
age 1.4's age-keygen makes AGE-SECRET-KEY-PQ-1 identities by default; the classical shape alone missed them. secrets-scan.sh and card's hard list both take the optional PQ- infix. Cases in card-test.py and secrets-guard-test.sh, built from parts so the files hold no matchable key; both fail on the parent tree.
…te key OPS #44 carried the arm recheck (compact-arm-check, compact --arm-record) without its unit and t3-api cases; this adds them as the source repo landed them. context-watch-selftest gains the CARD_THREAD-alone key case and the dispatch marker for another baton, and its helpers unset the host's CARD_THREAD so a test run inside a T3 thread cannot change the route.
memory-index --settle archives, byte for byte into <pool>/_archive/, the lowest-ranked entries a pool's own digest cannot describe; --restore brings one back and --health records a row per run. The template runs it in local mode only (MEMORY_SETTLE_MODE=local and MEMORY_SETTLE_ROOT in ~/.config/ops/memory-settle.env): it commits in the owner's checkout through a checked write path (settle lock, checkout flock, journal recovery, captured paths, a temporary-index plumbing commit moved by compare-and-swap, executable commit hooks refused) and never fetches, adds a remote or pushes. Any other or missing mode is refused, never guessed. The index writer waits briefly on the settle lock, and the env reader fails closed on any form systemd could read differently. --find and --hint also read each pool's _archive/, and --find the CONTEXT/projects lessons paragraphs. The 60-entry pool cap warning is gone; verify-ops check 6b now reads the settle's status file and SKIPs on a box without it. memory-backfill-modified stamps missing metadata.modified once before a first settle. Opt-in by presence: deploy step 11 keeps installed units and the local-mode drop-in current and never installs, creates the env file, enables or starts anything; the named rollout does that per box (bin/README.md, Team box install). memory_settle.py and memory-backfill-modified join OPS_DESTRUCTIVE_TOOLS, their two suites OPS_SANDBOX_SUITES. README also documents t3-api.sh compact --arm-record.
…review bin/desk, one self-contained file shared with the tree the template comes from, checks the AI context a session loads (stale core, dead references, ruling rows, duplicate pools) and caches one line in OPS_STATE_DIR; desk lapse, keep, review, commit-review and undo rewrite and commit the owner's rulings through a checked write path (plumbing commit, commit hooks refused, renameat2 swap, journal recovery). daily-sync.sh runs run_lapse then run_desk, both non-fatal with one sync.log line each. session-briefing.sh shows the cached Desk line and the one-time lapse notice from OPS_STATE_DIR, reading only. desk joins OPS_DESTRUCTIVE_TOOLS and its three suites OPS_SANDBOX_SUITES. desk-test.py sets OPS_DIR beside COWORK_DIR in its daily-sync harness; session-briefing-desk-test.sh pins this hook's full briefing on resume (it has no resume short form). README desk section and CHANGELOG for the whole pass.
deploy-trust-test.sh evaluates deploy.sh from the trust assignment to the next section; step 11 now follows the trust step, so the cut ends at either section header.
… unknown T3 state Review fixes. A manual settle now reads MEMORY_SETTLE through the shared env-file reader, so the file's pause wins over a stale shell value. Deploy defers daemon-reload when the T3 status query fails or answers an unknown value. Tests cover both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this brings to a box
bin/deskreports only what it can prove is wrong with the instructions a session loads: a core file that equals an older template version, a dead reference in an always-loaded file, a ruling row with no valid kind or a setup row past its review date. What it could not read is listed as unread, never as clean. The daily sync runs it once a day; the session briefing shows its one cached line and never scans.CONTEXT/standing-orders.mdandBOOTSTRAP.mddescribe a Kind column (setup,preference,guardrail). The daily sync runsdesk lapse, which moves a setup ruling past its review date toCONTEXT/standing-orders-archive.mdin one commit and leaves a one-time briefing notice;desk keeprestores it. A table with no Kind column is left alone, and the template sync never rewrites an existing table.desk review,desk commit-reviewanddesk undo: the owner answers keep, narrow or retire for at most ten of their own rulings, desk commits exactly those answers, and undo puts the bytes back. Every desk write is a plumbing commit of the planned bytes, refuses a checkout with an executable commit hook instead of bypassing it, swaps files in withrenameat2, and recovers or holds after an interruption.memory-index --settlearchives, byte for byte into<pool>/_archive/, the entries a pool's digest cannot describe, and commits the moves in the box's own checkout. The template runs it in local mode only; it never fetches, adds a remote or pushes. It stays off until a box's named rollout installs its units and env file; deploy only keeps installed copies current and never installs, creates the env file or enables the timer.--findand the prompt hint also search the archives, and--restorebrings an entry back. The 60-entry pool warning is gone; gate check 6b reads the settle's status and SKIPs where it is not installed.Gates (local, before this pull request)
sandbox-run, the secrets scanner): every suite passes except one timing case inmemory-hint-test.sh, which measured over its 300 ms limit on a heavily loaded machine.mainfails the same case on that machine at the same time, so this pull request's CI run is the check that counts for it.gitleaks git --redactover the branch and its full reachable history: no leaks.test_stage1.pywithOPS_DIRset to this branch):test_ops_model_rules_match_the_real_verify_opspasses. One unrelated pyenv migration case fails on the local host with and without this branch.sandbox-run: deploy twice, thenverify-ops.sh: 0 fail; deploy installs no settle unit or env file.Rollout notes
.claude-config/bin/README.md, "The nightly memory settle").run_lapseandrun_deskfromdaily-sync.shand deletedesk-last.json. To turn the settle off, disable its timer or setMEMORY_SETTLE=0in~/.config/ops/memory-settle.env.Models: Mythos 5.2, Opus 5.5 (build), Sol GPT-6.2 one round, Claude Code in T3 Code